package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 dormitory_check_in_out
 * 
 * @author ruoyi
 * @date 2023-01-11
 */
public class DormitoryCheckInOut extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 迁入迁出ID */
    private Long checkId;

    /** 登记人 */
    @Excel(name = "登记人")
    private String registrant;

    /** 姓名 */
    @Excel(name = "姓名")
    private String stuName;

    /** 学号 */
    @Excel(name = "学号")
    private Long stuNumber;

    /** 迁入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "迁入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkInDate;

    /** 迁入宿舍 */
    @Excel(name = "迁入宿舍")
    private Long checkInDomitory;

    /** 迁入楼栋 */
    @Excel(name = "迁入楼栋")
    private Long checkInBuilding;

    /** 迁出时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "迁出时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkOutDate;

    /** 迁出原因 */
    @Excel(name = "迁出原因")
    private String checkOutReason;

    public void setCheckId(Long checkId) 
    {
        this.checkId = checkId;
    }

    public Long getCheckId() 
    {
        return checkId;
    }
    public void setRegistrant(String registrant) 
    {
        this.registrant = registrant;
    }

    public String getRegistrant() 
    {
        return registrant;
    }
    public void setStuName(String stuName) 
    {
        this.stuName = stuName;
    }

    public String getStuName() 
    {
        return stuName;
    }
    public void setStuNumber(Long stuNumber) 
    {
        this.stuNumber = stuNumber;
    }

    public Long getStuNumber() 
    {
        return stuNumber;
    }
    public void setCheckInDate(Date checkInDate) 
    {
        this.checkInDate = checkInDate;
    }

    public Date getCheckInDate() 
    {
        return checkInDate;
    }
    public void setCheckInDomitory(Long checkInDomitory) 
    {
        this.checkInDomitory = checkInDomitory;
    }

    public Long getCheckInDomitory() 
    {
        return checkInDomitory;
    }
    public void setCheckInBuilding(Long checkInBuilding) 
    {
        this.checkInBuilding = checkInBuilding;
    }

    public Long getCheckInBuilding() 
    {
        return checkInBuilding;
    }
    public void setCheckOutDate(Date checkOutDate) 
    {
        this.checkOutDate = checkOutDate;
    }

    public Date getCheckOutDate() 
    {
        return checkOutDate;
    }
    public void setCheckOutReason(String checkOutReason) 
    {
        this.checkOutReason = checkOutReason;
    }

    public String getCheckOutReason() 
    {
        return checkOutReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("checkId", getCheckId())
            .append("registrant", getRegistrant())
            .append("stuName", getStuName())
            .append("stuNumber", getStuNumber())
            .append("checkInDate", getCheckInDate())
            .append("checkInDomitory", getCheckInDomitory())
            .append("checkInBuilding", getCheckInBuilding())
            .append("checkOutDate", getCheckOutDate())
            .append("checkOutReason", getCheckOutReason())
            .toString();
    }
}
